<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<table border="1" cellpadding="20">
    <tr>
        <th>id</th>
        <th>imj</th>
        <th>name</th>
        <th>age</th>
        <th>ads</th>
        <th>created_at</th>
        <th>updated_at</th>
        <th colspan="2">操作</th>
    </tr>
    @foreach($ab as $l)
        <tr>
            <td>{{$l->id}}</td>
            <td><img width="50" height="50" src="{{asset("public")}}/{{$l->img}}" alt="touxiang"></td>
            <td>{{$l->name}}</td>
            <td>{{$l->age}}</td>
            <td>{{$l->ads}}</td>
            <td>{{$l->created_at}}</td>
            <td>{{$l->updated_at}}</td>
            <td><a href="/form?id={{$l->id}}">编辑</a></td>
            <td><a href="/delete?id={{$l->id}}">删除</a></td>


        </tr>
        @endforeach

</table>

</body>
</html>

